package com.bootdo.enums;

public enum SubscribeStatus {

    One(0, "待就诊"),
    Two(1, "已就诊"),
    Three(2, "取消就诊"),
    Four(3, "未就诊"),
    ;
    private Integer sign;
    private String desc;

    SubscribeStatus(Integer sign, String desc) {
        this.sign = sign;
        this.desc = desc;
    }

    public static SubscribeStatus getEnum(Integer sign){
        for(SubscribeStatus item : SubscribeStatus.values()){
            if (item.getSign().equals(sign)){
                return item;
            }
        }
        return null;
    }

    public Integer getSign() {
        return sign;
    }

    public void setSign(Integer sign) {
        this.sign = sign;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
